
<%@ page language="java" %>

<%@ page import="com.scalar.chiptrack.utils.ConfigManager"%>

<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/chiptrack-tags.tld" prefix="chiptrack" %>

<chiptrack:checkLogon sourcePage="/jsp/admin/admin.jsp"/>

<html:html><HEAD><TITLE>Scalarsoft - ChipTrac</TITLE>

<%String chipTracContext = "/" + ConfigManager.getChipTracContext();%>

<META http-equiv=Content-Type content="text/html; charset=windows-1252">
<LINK href="<%=chipTracContext%>/jsp/includes/stylesheets/scalarsoft.css" type=text/css rel=stylesheet>

<META content="MSHTML 5.50.4807.2300" name=GENERATOR>

<script language='javascript'>
function deleteLots() {
    document.discrepancyLotsForm.submit();
}
function cancel(){
    //@todo '/jsp/adming/admin.jsp' must be fetched from configManager
	window.location="<%=chipTracContext%>/jsp/admin/admin.jsp";
}

</script>


</HEAD>
<BODY bgColor="#ffffff" leftMargin=0 topMargin=0 marginheight="0" marginwidth="0">

<!-- Top Header Start-->
<%@include file="/jsp/includes/header.jsp"  %>
<!-- Top Header End-->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>
	<td width='180' valign='top' background='<%=chipTracContext%>/jsp/includes/images/left_red_bg.gif'>

<!-- Side Navigation start -->
<%@ include file="/jsp/admin/admin_menu.jsp" %>
<!-- end of the side navigations -->
</TD>

<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=480 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="100%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>

<!-- from here your body starts -->

<TABLE cellSpacing=0 cellPadding=0 width="100%" border=0>
  <TBODY>
  <TR>

<BR>
</TD>
<TD bgcolor="#ffffff">
<IMG height=9 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=8></TD>
<TD bgcolor="#ffffff"><IMG height=100 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=2></TD>
<TD valign="top" width="80%">

<IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/clear.gif" width=500 border=0>
<BR>

<html:form name='discrepancyLotsForm' type='com.scalar.chiptrack.ChipTrackActionForm' action='/discrepancyLotsNotifications.do?action=confirm'>

<table align="left" border="0" width="85%">

    <tr><td>
        <center><span class="NArialW">Discrepancy Lots Notifications</span></center>
    </td></tr>

    <tr><td><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=30></td></tr>
    <tr><td><chiptrack:info styleClass='NArialL'/></td></tr>
    <tr><td><chiptrack:errors styleClass='NArialL'/></td></tr>
    <logic:present name="discrepancyLots">
        <%
            String bgColor[] = {"#DEE1E2", "#FFFFEE"};
        %>
        <tr><td align='center'><font class='NArialS'><font color='blue'></font></font></td></tr>
        <tr>
            <td ALIGN="left" bgcolor="#FFFFFF">
                <table border="0" width="100%" align=left>
        <logic:iterate id="discrepancyLot" name="discrepancyLots" indexId="index">
            <tr bgcolor='<%=bgColor[index.intValue()%2]%>'>
                <td width='100%'><font class='NArialL'><%="Discrepancy Lot Notification - "%><bean:write name="discrepancyLot" property="lotNumber"/></font>
                    <input type="hidden" name="notificationIds" value="<bean:write name='discrepancyLot' property='notificationId'/>">
                </td>
            </tr>
        </logic:iterate>
            <tr><td colspan='2'><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=10></td></tr>
            <tr><td align='center' colspan='2'>
                <a href="javascript:deleteLots()"><img border="0" onMouseOver="window.status='Click here to confirm';return true" src="<%=chipTracContext%>/jsp/includes/images/confirm.gif"></a>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
                <a href="javascript:cancel()"><img onMouseOver="window.status='Click here to cancel';return true"  border="0" src="<%=chipTracContext%>/jsp/includes/images/cancel.gif" width="53" height="17"></a>
            </td></tr>
        </table>
        </td>
        </tr>
    </logic:present>
    <logic:notPresent name="discrepancyLots">
        <tr><td align='center'><font class='NArialL'><font color='green'>No Notifications are Selected for Deletion</font></font></td></tr>
    </logic:notPresent>
        <tr><td><img src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" height=1></td></tr>
</table>

</html:form>

<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>

<!-- till here -->

<BR><BR><BR></TD>
<TD bgcolor="#ffffff"><IMG height=1 src="<%=chipTracContext%>/jsp/includes/images/spacer.gif" width=1></TD>
</TR>
</TABLE>

<!-- Footer starts here -->
<%@include file="/jsp/includes/footer.jsp" %>
<!-- footer end here -->

</BODY>
</html:html>